package com.bw.liuyushan.mycustomcircleprogressbar;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
/**
 * @created by LiuYuShan on 2021/10/21 15:02.
 * @Describe: MainActivity获取控件 展示效果
 * */

public class MainActivity extends AppCompatActivity {

    private CustomCircleProgressBar progressBarOne;
    private CustomCircleProgressBar progressBarTwo;
    private CustomCircleProgressBar progressBarThree;
    private CustomCircleProgressBar progressBarFour;
    private CustomCircleProgressBar progressBarFive;
    private CustomCircleProgressBar progressBarSix;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();//初始化控件
        progressBarOne.setProgress(20);//设置最终结束值
        progressBarTwo.setProgress(40);
        progressBarThree.setProgress(60);
        progressBarFour.setProgress(80);
        progressBarFive.setProgress(100);
        progressBarSix.setProgress(70);


    }

    private void initView() {
        progressBarOne = (CustomCircleProgressBar) findViewById(R.id.am_progressbar_one);
        progressBarTwo = (CustomCircleProgressBar) findViewById(R.id.am_progressbar_two);
        progressBarThree = (CustomCircleProgressBar) findViewById(R.id.am_progressbar_three);
        progressBarFour = (CustomCircleProgressBar) findViewById(R.id.am_progressbar_four);
        progressBarFive = (CustomCircleProgressBar) findViewById(R.id.am_progressbar_five);
        progressBarSix = (CustomCircleProgressBar) findViewById(R.id.am_progressbar_six);
    }
}
